package fr.cnam.ratpProject.client.utils;



import com.google.gwt.place.shared.PlaceController;
import com.google.web.bindery.event.shared.EventBus;

import fr.cnam.ratpProject.client.ClientFactory;

public class GlueProvider {
	
	
	public static GlueProvider INSTANCE = getInstance();

	private static GlueProvider getInstance() {
		if(INSTANCE == null)
			INSTANCE = new GlueProvider();
		return INSTANCE;
	}
	
	private ClientFactory clientFactory;
	
	
	public void setClientFactory(ClientFactory clientFactory) {
		this.clientFactory = clientFactory;
	}


	public EventBus getEventBus()
	{
		return clientFactory.getEventBus();
	}
	
	public PlaceController getPlaceController()
	{
		return clientFactory.getPlaceController();
	}
	
	public ClientFactory getClientFactory()
	{
		return clientFactory;
	}

	
	
	
}
